<template>
  <div class="mcontaner">
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="个人信息" name="first">
		<UserInfo></UserInfo>
	</el-tab-pane>
    <el-tab-pane label="文章概况" name="second">
		<BlogInfo></BlogInfo>
	</el-tab-pane>
	<el-tab-pane label="读者概况" name="third">
		<ReaderInfo></ReaderInfo>
	</el-tab-pane>
	<el-tab-pane label="banner管理" name="fourth">
		<BannerManage></BannerManage>
	</el-tab-pane>
  </el-tabs>
	<router-view></router-view>
    
  </div>
</template>

<script>
  import UserInfo from "../components/UserInfo.vue"
  import BlogInfo from "../components/BlogInfo.vue"
  import ReaderInfo from "../components/ReaderInfo.vue"
  import BannerManage from "../components/BannerManage.vue"
  export default {
    name: "User.vue",
    components: {UserInfo,BlogInfo,ReaderInfo,BannerManage},
    data() {
      return {
		 activeName: 'first'
      }
    },
    methods: {
      handleClick(tab, event) {
        // console.log(tab, event);
      }

    },

  }
</script>

<style scoped >

  .mpage {
    margin: 0 auto;
    text-align: center;
  }
  .block{
	  min-height: 300px;
		width: 50%;
		margin: 40px auto;
  }

  
  .el-tabs{
	  min-height: 450px;
  }

</style>